package com.geek.javase.Game;

/**
 * @author chenshupeng
 * @date 2025/9/3
 * @desc TODO
 **/

public class Monster extends Role {
    public void attack(Role H)
    {
        System.out.println(this.getName()+"造成"+this.getPower()+"伤害");
        H.setBlood(H.getBlood()-this.getPower());
    }
    public Monster(String name, String kind, int blood, int power, int defence, int level) {
        super(name,kind,blood,power,defence,level);
    }
}
